package com.ruoyi.amqp;

import com.ruoyi.framework.config.RabbitmqConfig;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
@RabbitListener(queues = {RabbitmqConfig.QUEUE_INFORM_SMS, RabbitmqConfig.QUEUE_INFORM_EMAIL})
public class DirectReceiver_amqp {
    @RabbitHandler
    public void process(Map testMessage)
    {
        System.out.println("DirectReciver message-queue:"+testMessage);
    }
}
